package pl.agh.pp.zephyr.web.controlPanels;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.NoneScoped;

import pl.agh.pp.zephyr.integration.McuController;
import pl.agh.pp.zephyr.logic.Engine;

@ManagedBean(name = "mcuControlPanel")
@NoneScoped
public class McuControlPanel implements ControlPanel{

	private static final long serialVersionUID = 1L;
	
	private McuController controller;
	
	@ManagedProperty(value = "#{engine}")
	private Engine engine;

	public void setEngine(Engine engine) {
		this.engine = engine;
	}

	@Override
	public String getType() {
		return Type.MCU.toString();
	}

	public McuController getController() {
		return controller;
	}

	public void setController(McuController controller) {
		this.controller = controller;
	}


}
